package com.csthink.auditlog.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @author <a href="mailto:security.2009@live.cn">Mars</a>
 * @since 2023-09-12
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
@Documented
public @interface AuditLogField {

    @AliasFor("value")
    String mapping() default "";

    @AliasFor("mapping")
    String value() default "";

    /**
     * use alias in place of the field name
     *
     * @return
     */
    String alias() default "";
}
